package com.liuyanzhao.blog.entity.custom;


import com.liuyanzhao.blog.util.others.Page;

/**
 *  用于封装评论信息，包括评论内容，作者信息，文章信息
  */
public class CommentListVo {
    //评论信息
    private CommentCustom commentCustom;

    //文章信息
    private ArticleCustom articleCustom;

    //分页信息
    private Page page;

    public CommentCustom getCommentCustom() {
        return commentCustom;
    }

    public void setCommentCustom(CommentCustom commentCustom) {
        this.commentCustom = commentCustom;
    }

    public ArticleCustom getArticleCustom() {
        return articleCustom;
    }

    public void setArticleCustom(ArticleCustom articleCustom) {
        this.articleCustom = articleCustom;
    }

    public Page getPage() {
        return page;
    }

    public void setPage(Page page) {
        this.page = page;
    }

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((articleCustom == null) ? 0 : articleCustom.hashCode());
		result = prime * result + ((commentCustom == null) ? 0 : commentCustom.hashCode());
		result = prime * result + ((page == null) ? 0 : page.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CommentListVo other = (CommentListVo) obj;
		if (articleCustom == null) {
			if (other.articleCustom != null)
				return false;
		} else if (!articleCustom.equals(other.articleCustom))
			return false;
		if (commentCustom == null) {
			if (other.commentCustom != null)
				return false;
		} else if (!commentCustom.equals(other.commentCustom))
			return false;
		if (page == null) {
			if (other.page != null)
				return false;
		} else if (!page.equals(other.page))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "CommentListVo [commentCustom=" + commentCustom + ", articleCustom=" + articleCustom + ", page=" + page
				+ "]";
	}
    
    
    
}
